﻿@using Webdiyer.WebControls.Mvc;
@model  Webdiyer.WebControls.Mvc.PagedList<ClassLibrary1.OrderForm>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            UserID
        </th>
        <th>
            UserName
        </th>
        <th>
            UserTrueName
        </th>
        <th>
            UserType
        </th>
        <th>
            MoneyType
        </th>
        <th>
            Price
        </th>
        <th>
            PaidPrice
        </th>
        <th>
            Addressee
        </th>
        <th>
            CountryID
        </th>
        <th>
            Province
        </th>
        <th>
            City
        </th>
        <th>
            Area
        </th>
        <th>
            Address
        </th>
        <th>
            Postalcode
        </th>
        <th>
            Phone
        </th>
        <th>
            MobilePhone
        </th>
        <th>
            TransferID
        </th>
        <th>
            TransferWay
        </th>
        <th>
            TransferPrice
        </th>
        <th>
            AdditionalPrice
        </th>
        <th>
            CallBefore
        </th>
        <th>
            ReceiveTime
        </th>
        <th>
            PostTime
        </th>
        <th>
            UpdateTime
        </th>
        <th>
            DeliverTime
        </th>
        <th>
            FinishTime
        </th>
        <th>
            Status
        </th>
        <th>
            NeedInvoice
        </th>
        <th>
            InvoiceTitle
        </th>
        <th>
            InvoiceType
        </th>
        <th>
            SysInvoiceNo
        </th>
        <th>
            TaxInvoiceNo
        </th>
        <th>
            Comment
        </th>
        <th>
            Email
        </th>
        <th>
            PaymentTypeID
        </th>
        <th>
            PaymentType
        </th>
        <th>
            IsCasing
        </th>
        <th>
            Words
        </th>
        <th>
            FormType
        </th>
        <th>
            CSNo
        </th>
        <th>
            CSName
        </th>
        <th>
            HouseCode
        </th>
        <th>
            MediaCode
        </th>
        <th>
            WebSource
        </th>
        <th>
            IsModify
        </th>
        <th>
            IsUrgent
        </th>
        <th>
            WebSourceUserName
        </th>
        <th>
            WebSourceSon_UserName
        </th>
        <th>
            AfterSales
        </th>
        <th>
            ExpressCompanyID
        </th>
        <th>
            IsDistribute
        </th>
        <th>
            IsNew
        </th>
        <th>
            PremiumPartPrice
        </th>
        <th>
            WaitRedeploy
        </th>
        <th>
            GeterMan
        </th>
        <th>
            PayTime
        </th>
        <th>
            DistributeTime
        </th>
        <th>
            PrintTime
        </th>
        <th>
            PickTime
        </th>
        <th>
            PackTime
        </th>
        <th>
            IsFreeze
        </th>
        <th>
            PackMan
        </th>
        <th>
            EnterStationTime
        </th>
        <th>
            SetDeliverManTime
        </th>
        <th>
            OutStationTime
        </th>
        <th>
            DeliverTimes
        </th>
        <th>
            DeliverMan
        </th>
        <th>
            DeliverCompleteTime
        </th>
        <th>
            SetWaitTime
        </th>
        <th>
            DeliverComment
        </th>
        <th>
            IsInvoice
        </th>
        <th>
            AvailableTime
        </th>
        <th>
            SysRemark
        </th>
        <th>
            UncashSum
        </th>
        <th>
            AreaID
        </th>
        <th>
            OrderType
        </th>
        <th>
            PrevOrder
        </th>
        <th>
            ReturnsCode
        </th>
        <th>
            GotoCancel
        </th>
        <th>
            CashSum
        </th>
        <th>
            OrigOrder
        </th>
        <th>
            PackageSum
        </th>
        <th>
            SendHouseSign
        </th>
        <th>
            ConfirmMan
        </th>
        <th>
            ConfirmTime
        </th>
        <th>
            HandInMan
        </th>
        <th>
            HandInTime
        </th>
        <th>
            BoxNo
        </th>
        <th>
            Weight
        </th>
        <th>
            TransferStatus
        </th>
        <th>
            ReplacementType
        </th>
        <th>
            UserLevel
        </th>
        <th>
            Points
        </th>
        <th>
            PaidPoint
        </th>
        <th>
            IsMcDonald
        </th>
        <th>
            TotalPrice
        </th>
        <th>
            CashonDeliveryType
        </th>
        <th>
            FatherCode
        </th>
        <th>
            IsTaskHandled
        </th>
        <th>
            SplitType
        </th>
        <th>
            IsChanged
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.FormCode }) |
            @Html.ActionLink("Details", "Details", new { id=item.FormCode }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.FormCode })
        </td>
        <td>
            @item.UserID
        </td>
        <td>
            @item.UserName
        </td>
        <td>
            @item.UserTrueName
        </td>
        <td>
            @item.UserType
        </td>
        <td>
            @item.MoneyType
        </td>
        <td>
            @String.Format("{0:F}", item.Price)
        </td>
        <td>
            @String.Format("{0:F}", item.PaidPrice)
        </td>
        <td>
            @item.Addressee
        </td>
        <td>
            @item.CountryID
        </td>
        <td>
            @item.Province
        </td>
        <td>
            @item.City
        </td>
        <td>
            @item.Area
        </td>
        <td>
            @item.Address
        </td>
        <td>
            @item.Postalcode
        </td>
        <td>
            @item.Phone
        </td>
        <td>
            @item.MobilePhone
        </td>
        <td>
            @item.TransferID
        </td>
        <td>
            @item.TransferWay
        </td>
        <td>
            @String.Format("{0:F}", item.TransferPrice)
        </td>
        <td>
            @String.Format("{0:F}", item.AdditionalPrice)
        </td>
        <td>
            @item.CallBefore
        </td>
        <td>
            @item.ReceiveTime
        </td>
        <td>
            @String.Format("{0:g}", item.PostTime)
        </td>
        <td>
            @String.Format("{0:g}", item.UpdateTime)
        </td>
        <td>
            @String.Format("{0:g}", item.DeliverTime)
        </td>
        <td>
            @String.Format("{0:g}", item.FinishTime)
        </td>
        <td>
            @item.Status
        </td>
        <td>
            @item.NeedInvoice
        </td>
        <td>
            @item.InvoiceTitle
        </td>
        <td>
            @item.InvoiceType
        </td>
        <td>
            @item.SysInvoiceNo
        </td>
        <td>
            @item.TaxInvoiceNo
        </td>
        <td>
            @item.Comment
        </td>
        <td>
            @item.Email
        </td>
        <td>
            @item.PaymentTypeID
        </td>
        <td>
            @item.PaymentType
        </td>
        <td>
            @item.IsCasing
        </td>
        <td>
            @item.Words
        </td>
        <td>
            @item.FormType
        </td>
        <td>
            @item.CSNo
        </td>
        <td>
            @item.CSName
        </td>
        <td>
            @item.HouseCode
        </td>
        <td>
            @item.MediaCode
        </td>
        <td>
            @item.WebSource
        </td>
        <td>
            @item.IsModify
        </td>
        <td>
            @item.IsUrgent
        </td>
        <td>
            @item.WebSourceUserName
        </td>
        <td>
            @item.WebSourceSon_UserName
        </td>
        <td>
            @item.AfterSales
        </td>
        <td>
            @item.ExpressCompanyID
        </td>
        <td>
            @item.IsDistribute
        </td>
        <td>
            @item.IsNew
        </td>
        <td>
            @String.Format("{0:F}", item.PremiumPartPrice)
        </td>
        <td>
            @item.WaitRedeploy
        </td>
        <td>
            @item.GeterMan
        </td>
        <td>
            @String.Format("{0:g}", item.PayTime)
        </td>
        <td>
            @String.Format("{0:g}", item.DistributeTime)
        </td>
        <td>
            @String.Format("{0:g}", item.PrintTime)
        </td>
        <td>
            @String.Format("{0:g}", item.PickTime)
        </td>
        <td>
            @String.Format("{0:g}", item.PackTime)
        </td>
        <td>
            @item.IsFreeze
        </td>
        <td>
            @item.PackMan
        </td>
        <td>
            @String.Format("{0:g}", item.EnterStationTime)
        </td>
        <td>
            @String.Format("{0:g}", item.SetDeliverManTime)
        </td>
        <td>
            @String.Format("{0:g}", item.OutStationTime)
        </td>
        <td>
            @item.DeliverTimes
        </td>
        <td>
            @item.DeliverMan
        </td>
        <td>
            @String.Format("{0:g}", item.DeliverCompleteTime)
        </td>
        <td>
            @String.Format("{0:g}", item.SetWaitTime)
        </td>
        <td>
            @item.DeliverComment
        </td>
        <td>
            @item.IsInvoice
        </td>
        <td>
            @String.Format("{0:g}", item.AvailableTime)
        </td>
        <td>
            @item.SysRemark
        </td>
        <td>
            @String.Format("{0:F}", item.UncashSum)
        </td>
        <td>
            @item.AreaID
        </td>
        <td>
            @item.OrderType
        </td>
        <td>
            @item.PrevOrder
        </td>
        <td>
            @item.ReturnsCode
        </td>
        <td>
            @item.GotoCancel
        </td>
        <td>
            @String.Format("{0:F}", item.CashSum)
        </td>
        <td>
            @item.OrigOrder
        </td>
        <td>
            @String.Format("{0:F}", item.PackageSum)
        </td>
        <td>
            @item.SendHouseSign
        </td>
        <td>
            @item.ConfirmMan
        </td>
        <td>
            @String.Format("{0:g}", item.ConfirmTime)
        </td>
        <td>
            @item.HandInMan
        </td>
        <td>
            @String.Format("{0:g}", item.HandInTime)
        </td>
        <td>
            @item.BoxNo
        </td>
        <td>
            @String.Format("{0:F}", item.Weight)
        </td>
        <td>
            @item.TransferStatus
        </td>
        <td>
            @item.ReplacementType
        </td>
        <td>
            @item.UserLevel
        </td>
        <td>
            @item.Points
        </td>
        <td>
            @item.PaidPoint
        </td>
        <td>
            @item.IsMcDonald
        </td>
        <td>
            @String.Format("{0:F}", item.TotalPrice)
        </td>
        <td>
            @item.CashonDeliveryType
        </td>
        <td>
            @item.FatherCode
        </td>
        <td>
            @item.IsTaskHandled
        </td>
        <td>
            @item.SplitType
        </td>
        <td>
            @item.IsChanged
        </td>
    </tr>
}

</table>
@Html.Pager(Model, new PagerOptions { PageIndexParameterName = "id" }) 

